import React from 'react'
import { useContext } from 'react'
import { AppContext } from '../../App'
import Item from './item'
export default function List() {
  //用 useContext 接受某一个值
  const money = useContext(AppContext);
  return (
    <div>
      <p>我是子组件</p>
      <p>我用我老头的 {money} $</p>
      <hr/>
      <Item/>
    </div>

  )
}
